package com.zhouyx.userservice.service;

import com.zhouyx.userservice.service.interfaces.TestService;

/**
 * @title: TestServiceA
 * @Author: max.zhou1
 * @Date: 2024/9/10 17:33
 * @Version: 1.0
 **/
//@Component
//@ConditionalOnProperty(name = "testService.isA", havingValue = "true")
public class TestServiceA implements TestService {
//    @Autowired
//    private Region region;

    static {
        // 这里的代码会在类被初始化时执行
        System.out.println("TestServiceA被创建了！");
    }

    @Override
    public void test() {
//        if (region.isNeedCoolingOff()) {
//            System.out.println("do this");
//        }else {
//            System.out.println("do that");
//        }
        System.out.println("I am TestServiceA");
    }
}
